package com.exonline.commons.base;
/**
 * @desc    自定义C层接口
 * @author  hbrj
 */

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;

public interface IBaseServlet { ;


    //1.查询
    public default void query(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException {

    }

    //2.删除
    public default void delete(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException {

    }

    //3.查询一条
    public default void queryOne(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException {

    }

    //4.修改
    public default void edit(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException {

    }

    //5.添加
    public default void add(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException {

    }

}
